import React from 'react'
import {Tabs, Icon} from 'antd'
import './tools.css'
import Age from '../tools/components/age/age'
import Counter from '../tools/components/counter/counter'

const TabPane = Tabs.TabPane

export default class Tools extends React.Component {
    render() {
        return (
            <Tabs defaultActiveKey="1">
                <TabPane tab={<span><Icon type="calendar" />年龄</span>} key="1">
                    <Age />
                </TabPane>
                <TabPane tab={<span><Icon type="calculator" />计数器</span>} key="2">
                    <Counter />
                </TabPane>
                <TabPane tab={<span><Icon type="loading" />拼命加载中</span>} disabled  key="3">
                </TabPane>
            </Tabs>
        )
    }
}